package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
@ApiModel
public class SupplierInfoResponse implements Serializable {
    @ApiModelProperty("公司ID")
    private Integer companyId;
    @ApiModelProperty("公司名称")
    private String companyName;
    @ApiModelProperty(value = "等级")
    private Integer companyLevel;
    @ApiModelProperty(value = "中科公信:1存在")
    private Integer hasZkgx;
    @ApiModelProperty("是否关注:0无 1已关注")
    @Deprecated
    private Integer collectFlag;
    @ApiModelProperty("展厅地址（h5）")
    private String vrUrl;

    @ApiModelProperty("用户ID")
    private Integer userId;
    @ApiModelProperty("用户聊天ID")
    private String userChatId;
    @ApiModelProperty("是否已关注用户:0无 1已关注")
    private Integer userCollectFlag;
    @ApiModelProperty("名片ID")
    private Integer cardId;
    @ApiModelProperty("名片头像")
    private String cardImg;
    @ApiModelProperty("名片名称")
    private String cardName;
    @ApiModelProperty("职位")
    private String position;
    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty(value = "分类列表", dataType = "SupplierInfoResponse.Type")
    private List<Type> goodsTypeList;

    @ApiModelProperty("是否直播中:0无 1直播中")
    private Integer liveFlag;

    @ApiModelProperty("是否有营业执照:0无 1有")
    private Integer licensePhotosFlag;
    private List<String> licensePhotos;


    @Data
    @Builder
    @ApiModel("SupplierInfoResponse.Type")
    public static class Type implements Serializable {
        private Integer goodsTypeId;
        private String name;
        @ApiModelProperty(value = "分类列表", dataType = "SupplierInfoResponse.Type")
        private List<Type> childList;
    }
}
